<% extends 'base.html' %>
<% block title %>收货列表<% endblock %>
<% block body %>
<div class='page'>
    <div class="content" ms-controller='delivery-in' >
        <input name='hidden' id='hidden-product' value='${product_id}' ms-visible='false' />
        <div class='weixin-flex product-info-show'>
            <img src='/website/image/product.product/${product_id}/image' />
            <div class='product-info-show-content' >
                <div >{{product.name}}</div>
                <div >{{product.description}}</div>
            </div>
        </div>

        <div class='product-picking-show' ms-visible='active_length > 0'>
            <div class='weixin-flex product-picking-move' ms-repeat-move='moves' ms-if-loop='!move.delete' >
                <div class='product-picking-move-quantity'>{{move.product_qty}}{{product.uom}}</div>
                <div class='product-picking-name'>关联单号：{{move.picking_name}}</div>
                <div class='product-picking-confirm-button' ms-click='action_done(move)'>收货</div>
            </div>
        </div>

        <div class='product-picking-show' ms-visible='active_length == 0'>
            <div class='product-picking-no-move'>
                该产品还没有需要入库的入库单，可能相关的单据没有确认或创建
            </div>
        </div>
    </div>
</div>

<% endblock %>

<% block script %>
    ${ super() }
    <script type="text/javascript" src="/dftg_weixin/static/src/js/delivery_in.js"></script>
<% endblock %>
